<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* fr代表倍数 */
        /* fr相对于单个最小元素的宽度 */
        .box{
            width: 888px;
            height: 300px;
            display: grid;
            grid-template-columns: 150px 1fr 2fr;
            grid-template-rows: 100px 150px 50px;
            grid-column-gap: 10px;
            grid-row-gap: 20px;
        }
    </style>
</head>
<body>
    <div class="box">
        <div style="background-color: purple;"></div>
        <div style="background-color: pink;"></div>
        <div style="background-color: skyblue;"></div>
        <div style="background-color: purple;"></div>
        <div style="background-color: pink;"></div>
        <div style="background-color: skyblue;"></div>
        <div style="background-color: purple;"></div>
        <div style="background-color: pink;"></div>
        <div style="background-color: skyblue;"></div>
      </div>
</body>
</html>